import { createRouter, createWebHistory } from 'vue-router';
const router = createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: '/',
      component: () => import('../view/ZhuceView.vue')
    },
    {
      path: '/register',
      component: () => import('../view/LoginView.vue')
    },

    {
      path: '/main',
      component: () => import('../view/main/MainView.vue'),
      children:[
        {
          path: '/memberlist',
          component: () => import('../view/admin/MemebetshowView.vue')
        }
      ]
    }
  ]
});
export default router;  
